package com.gy.hsim.bservice.shieldmsg.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gy.hsim.bservice.framework.bean.ErrorMsg;
import com.gy.hsim.bservice.framework.mapper.ShieldPublicMsgMapper;
import com.gy.hsim.bservice.shieldmsg.bean.PublicNOShieldReq;
import com.gy.hsim.bservice.shieldmsg.service.ShieldPublicMsgService;

/**
 * 
 * @ClassName: ShieldMsgServiceImpl 
 * @Description: 屏蔽消息业务实现类
 * @author Lee 
 * @date 2015-1-19 上午11:16:15
 */
@Scope("prototype")
@Service("shieldPublicMsgService")
public class ShieldPublicMsgServiceImpl implements ShieldPublicMsgService {

	private static final Logger log = LoggerFactory
			.getLogger(ShieldPublicMsgServiceImpl.class);

	/**
	 * 网元鉴权mapper接口
	 */
	@Autowired
	private ShieldPublicMsgMapper shieldMsgMapper;

	
	
	/**
	 * 屏蔽/不屏蔽用户关注的公众号
	 */
	@Override
	@Transactional
	public boolean update(PublicNOShieldReq data,ErrorMsg errormsg) {
		// TODO Auto-generated method stub
		
		boolean isSuccess = false;
		
		if (data != null) {
				
			isSuccess = shieldMsgMapper.update(data);
			
		}
		
		return isSuccess;
	}

}
